<template>
  <div>
    <van-sticky :offset-top="0">
      <div class="back">
        <img src="/foryou/arrow.svg" alt="" @click="$router.go(-1)">
        为你推荐
      </div>
    </van-sticky>
    <!-- <h1>跳转到人气推荐</h1> -->
    <van-list v-model="loading" :finished="finished" finished-text="没有更多了">
      <foryou v-for="item in 2"></foryou>
    </van-list>
  </div>
</template>

<script>
import foryou from '../../components/forYou.vue';
export default {
  components: { foryou },
  data() {
    return {
      // 加载
      loading: false,
      finished: false,
    }
  },
}
</script>

<style lang="scss" scoped>
.back {
  height: 50px;
  text-align: center;
  position: relative;
  line-height: 50px;
  font-weight: 600;
  font-size: larger;
  font-family: 'Arial Negreta', 'Arial';
  background-color: #fff;
  border-bottom: 1px solid #ddd;

  img {
    height: 40%;
    position: absolute;
    bottom: 15px;
    left: 10px;
  }
}
</style>